|
|
Rune <run### [at] inamecom> wrote:
: Yes if wanted just a single random value - but I need dozens of them!
Now I don't understand.
You want a macro so that you give it two values and it returns a random
value corresponding to those input values. That is, if you call MyRand(2,5)
it would return something seemingly not related to 2 and 5, like 0.27642.
Is this correct?
What I don't understand is how it can return several values. Do you mean
that if you call it again with MyRand(2,5) it should return a different
value? What's the difference with regular rand() then?
: Not only should the random number have no visible connection to VAL. It
: should also have no visible connection to the other random numbers.
What other random numbers?
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
|